<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="../js/vue.js"></script>
    <title>数据绑定</title>
</head>
<body>
    <div id="root">
         <h2>显示值</h2>
         <spn>{{value}}</spn> 
        <h2>单向绑定:v-bind</h2>  
        <input type="text" v-bind:value="value"/> 
        <input type="text" :value="value"/> 
        <h2>双向绑定:v-model</h2>
        <input type="text" v-model:value="value"/> 
        <input type="text" v-model="value"/> 

    </div>
<script>
 let app = new Vue({
   el:'#root',
   data: {
      value:'设置值' 
   },
   methods: {

   }
 });
 


</script>
</body>
</html>